package com.exercise02;

public class test {
    public static void main(String[] args) {
        Cbenz cbenz = new Cbenz("奔驰车",500000);
        System.out.println("价值" + cbenz.brand + "元的" + cbenz.price + cbenz.run());

        Cbmw cbmw = new Cbmw("宝马车",800000);
        System.out.println("价值" + cbmw.brand + "元的" + cbmw.price + cbmw.run());

        Mymh mymh = new Mymh("雅马哈摩托车",50000);
        System.out.println("价值" + mymh.brand + "元的" + mymh.price + mymh.run());

        Mbmw mbmw = new Mbmw("宝马摩托车",80000);
        System.out.println("价值" + mbmw.brand + "元的" + mbmw.price + mbmw.run());

        System.out.println("价值" + cbmw.brand + "元的" + cbmw.price + cbmw.startGps());
        System.out.println("价值" + mbmw.brand + "元的" + mbmw.price + mbmw.startGps());

    }

}
